﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="notice.aspx.cs" Inherits="notice_notice" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style=" height:30px; width:100%; margin-bottom:10px">
    <asp:HyperLink ID="HyperLink4" runat="server" NavigateUrl="~/main.aspx">桌面</asp:HyperLink>
    &gt;&gt;<asp:HyperLink ID="HyperLink5" runat="server" 
        NavigateUrl="~/notice/notice.aspx" style=" color:red">通知公告管理</asp:HyperLink>
 </div>
 <div>
    <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" CellPadding="3" DataKeyNames="noticNo" 
        DataSourceID="LinqDataSource1" GridLines="Vertical" 
        onrowdatabound="GridView2_RowDataBound1" Width="100%">
        <AlternatingRowStyle BackColor="#DCDCDC" />
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <asp:Label ID="Label3" runat="server" Text="Label"></asp:Label>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:HyperLinkField DataNavigateUrlFields="noticNo" 
                DataNavigateUrlFormatString="notice2.aspx?id={0}" DataTextField="theme" 
                HeaderText="通知主题" />
            <asp:BoundField DataField="senderName" HeaderText="发布人" 
                SortExpression="senderName" />
            <asp:BoundField DataField="sendTime" HeaderText="发布时间" 
                SortExpression="sendTime" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#0000A9" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#000065" />
    </asp:GridView>
    <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
        ContextTypeName="DataClassesDataContext" EntityTypeName="" 
        TableName="NoticInfo">
    </asp:LinqDataSource>
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="发布通知公告" 
         CssClass="btn01" />
    </div>
</asp:Content>

